<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
	<meta name="renderer" content="webkit" />
	<meta http-equiv="Cache-Control" content="no-transform" />
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	<link rel="icon" href="/images/mediation/common/Frame.ico" type="image/x-icon"/>
	<title>{$sysname}</title>
	<!--[if lt IE 9]>
	<script src="/js/module/html5shiv.min.js"></script>
	<script src="/js/module/respond.js"></script>
	<![endif]-->
	<link rel="stylesheet" type="text/css" href="/css/common/bts.css" />
	<link rel="stylesheet" type="text/css" href="/css/common/tstr.min.css" />
	<link rel="stylesheet" type="text/css" href="/css/common/h&s.css" />
	<link rel="stylesheet" type="text/css" href="/css/common/bts-s.min.css">
	<link rel="stylesheet" type="text/css" href="/css/common/jquery-confirm.css">
	<link rel="stylesheet" type="text/css" href="/css/common/xndatepicker.css" />
	<style>
		button {
			outline: 0!important;
		}
		input[type="button"] {
			outline: 0!important;
		}
	</style>
	{block name="page_styles"}{/block}
	<script type="text/javascript" src="/js/module/j.js"></script>
	<script type="text/javascript" src="/js/module/bts.min.js"></script>
	<script type="text/javascript" src="/js/module/tstr.min.js"></script>
	<script type="text/javascript" src="/js/module/bts-s.min.js"></script>
	<script type="text/javascript" src="/js/module/jquery-confirm.js"></script>
	<script type="text/javascript" src="/js/module/moment1.js"></script>
	<script type="text/javascript" src="/js/modules/xntimepicker.js"></script>
	<script type="text/javascript" src="/js/module/xndatepicker.js"></script>
	<script src="/js/audiojs/audio.min.js"></script>
	{if $callline=='zt'}
	<script src="http://120.77.3.170:8003/crm_script.js"></script>
	{/if}
	<script>
		toastr.options = {
			"closeButton": false,
			"debug": false,
			"newestOnTop": true,
			"progressBar": false,
			"positionClass": "toast-center-center",
			"preventDuplicates": false,
			"onclick": null,
			"showDuration": "300",
			"hideDuration": "1000",
			"timeOut": "5000",
			"extendedTimeOut": "1000",
			"showEasing": "swing",
			"hideEasing": "linear",
			"showMethod": "fadeIn",
			"hideMethod": "fadeOut"
		}
		$(function(){
			audiojs.events.ready(function() {
				var as = audiojs.createAll();
			});
			$("[data-toggle='tooltip']").tooltip();
			function initDataModule(that,newJson){
				// https://www.jq22.com/jquery-info23561
				newJson=newJson||{
				};
				let val= that.val(),
						handleTime = val.split('到');
				console.log(val);
				console.log(handleTime)
				console.log(handleTime.length>1?handleTime[1]:val)
				let json1 = {
					// format:'YYYY-MM-DD',
					type:that.attr('data-type')||'date',//year/month/date/multiple/ week/datetime/datetimerange/ daterange/monthrange/yearrange
					multipleDates:[],//当为多选日期类型时的初始值
					startTime: handleTime.length>1?handleTime[0].trim():val,
					endTime: handleTime.length>1?handleTime[1].trim():val,
					// minDate:'2019-04-04',
					maxDate:'',
					separator:' 到 ',
					showType:'modal',
					linkPanels:false,//面板联动
					showClear:true,//是否显示清除按钮
					autoConfirm:true,
					showShortKeys:true,
					autoFillDate:true,//自动变更element里面的值
				};
				console.log(json1)
				let json2={
					...json1,...newJson
				}
				dataArr.push(new XNDatepicker(that,json2,function(data){
					console.log(data)
				},))
				if(!val){
					that.val('');
				}
			}

			var dataArr=[];
			$('[data-ele="date"]').each(function(index){
				initDataModule($(this));
				$(this).attr('date-sort',index)
			})
			$('body')
					.on('change','[data-select="date"]',function(){
						let val= $(this).val();
						let ele = $(this).parents('.date-box-parent').find('[data-ele="date"]');
						console.log(dataArr[ele.attr('date-sort')])
						if(dataArr[ele.attr('date-sort')]){
							dataArr[ele.attr('date-sort')].destroy();
							initDataModule(ele,{
								type: val
							})
						}
					})

			//初始化时间插件
			{* var date = new Date();
				date.setDate(date.getDate()-1);
				var weekbefore=new Date();
				weekbefore.setDate(weekbefore.getDate()-8);
				daysOfWeek = ['日', '一', '二', '三', '四', '五', '六'];
				monthNames = ['一月', '二月', '三月', '四月', '五月', '六月','七月', '八月', '九月', '十月', '十一月', '十二月'];

				$('[role-ele=date]').daterangepicker({
							format: "YYYY/MM/DD", //设置显示格式
							locale: {
								applyLabel: '确定', //确定按钮文本
								cancelLabel: '取消', //取消按钮文本
								autoUpdateInput:false,
								daysOfWeek: daysOfWeek,
								monthNames: monthNames
							},
							singleDatePicker: false, //单日历
							startDate: weekbefore,
							endDate: date,
						},
						function(start, end, label) {
							// $('[role-ele=date]').val( start.format('YYYY/MM/DD') + ' - ' + end.format('YYYY/MM/DD'));
						}); *}
			$('body')
					.on('click','.switch-item',function(){
						$(this).addClass('active').siblings().removeClass('active');
						$(this).parent().next().find('.show-table').eq($(this).index()).show().siblings().hide();
					})
			var mask_div = document.createElement('div');
			mask_div.id = 'mask_div1';
			mask_div.style.position = "absolute";
			mask_div.style.left =  '20px';
			mask_div.style.top =  '20px';
			mask_div.style.overflow = "hidden";
			mask_div.style.zIndex = "9999";
			mask_div.style.opacity = 0.3;
			document.body.appendChild(mask_div);
			function watermark(settings) {
				//默认设置
				var defaultSettings={
					watermark_txt:"text",
					watermark_x:20,//水印起始位置x轴坐标
					watermark_y:20,//水印起始位置Y轴坐标
					watermark_rows:20,//水印行数
					watermark_cols:20,//水印列数
					watermark_x_space:100,//水印x轴间隔
					watermark_y_space:50,//水印y轴间隔
					watermark_color:'#000000',//水印字体颜色
					watermark_alpha:0.11,//水印透明度
					watermark_fontsize:'12px',//水印字体大小
					watermark_font:'微软雅黑',//水印字体
					watermark_width:160,//水印宽度
					watermark_height:80,//水印长度
					watermark_angle:15//水印倾斜度数
				};
				//采用配置项替换默认值，作用类似jquery.extend
				if(arguments.length===1&&typeof arguments[0] ==="object" )
				{
					var src=arguments[0]||{};
					for(key in src)
					{
						if(src[key]&&defaultSettings[key]&&src[key]===defaultSettings[key])
							continue;
						else if(src[key])
							defaultSettings[key]=src[key];
					}
				}

				var oTemp = document.createDocumentFragment();

				//获取页面最大宽度
				var page_width = Math.max(document.body.scrollWidth,document.body.clientWidth);
				//获取页面最大长度
				var page_height = Math.max(document.body.scrollHeight,document.body.clientHeight);

				//如果将水印列数设置为0，或水印列数设置过大，超过页面最大宽度，则重新计算水印列数和水印x轴间隔
				if (defaultSettings.watermark_cols == 0 || (parseInt(defaultSettings.watermark_x + defaultSettings.watermark_width *defaultSettings.watermark_cols + defaultSettings.watermark_x_space * (defaultSettings.watermark_cols - 1)) > page_width)) {
					defaultSettings.watermark_cols = parseInt((page_width-defaultSettings.watermark_x+defaultSettings.watermark_x_space) / (defaultSettings.watermark_width + defaultSettings.watermark_x_space));
					defaultSettings.watermark_x_space = parseInt((page_width - defaultSettings.watermark_x - defaultSettings.watermark_width * defaultSettings.watermark_cols) / (defaultSettings.watermark_cols - 1));
				}
				//如果将水印行数设置为0，或水印行数设置过大，超过页面最大长度，则重新计算水印行数和水印y轴间隔
				if (defaultSettings.watermark_rows == 0 || (parseInt(defaultSettings.watermark_y + defaultSettings.watermark_height * defaultSettings.watermark_rows + defaultSettings.watermark_y_space * (defaultSettings.watermark_rows - 1)) > page_height)) {
					defaultSettings.watermark_rows = parseInt((defaultSettings.watermark_y_space + page_height - defaultSettings.watermark_y) / (defaultSettings.watermark_height + defaultSettings.watermark_y_space));
					defaultSettings.watermark_y_space = parseInt(((page_height - defaultSettings.watermark_y) - defaultSettings.watermark_height * defaultSettings.watermark_rows) / (defaultSettings.watermark_rows - 1));
				}
				var x;
				var y;
				for (var i = 0; i < defaultSettings.watermark_rows; i++) {
					y = defaultSettings.watermark_y + (defaultSettings.watermark_y_space + defaultSettings.watermark_height) * i;
					for (var j = 0; j < defaultSettings.watermark_cols; j++) {
						x = defaultSettings.watermark_x + (defaultSettings.watermark_width + defaultSettings.watermark_x_space) * j;

						var mask_div = document.createElement('div');
						mask_div.id = 'mask_div' + i + j;
						mask_div.appendChild(document.createTextNode(defaultSettings.watermark_txt));
//设置水印div倾斜显示
						mask_div.style.webkitTransform = "rotate(-" + defaultSettings.watermark_angle + "deg)";
						mask_div.style.MozTransform = "rotate(-" + defaultSettings.watermark_angle + "deg)";
						mask_div.style.msTransform = "rotate(-" + defaultSettings.watermark_angle + "deg)";
						mask_div.style.OTransform = "rotate(-" + defaultSettings.watermark_angle + "deg)";
						mask_div.style.transform = "rotate(-" + defaultSettings.watermark_angle + "deg)";
						mask_div.style.visibility = "";
						mask_div.style.position = "absolute";
						mask_div.style.pointerEvents = "none";
						mask_div.style.left = x + 'px';
						mask_div.style.top = y + 'px';
						mask_div.style.overflow = "hidden";
						mask_div.style.zIndex = "9999";
						//mask_div.style.border="solid #eee 1px";
						mask_div.style.opacity = defaultSettings.watermark_alpha;
						mask_div.style.fontSize = defaultSettings.watermark_fontsize;
						mask_div.style.fontFamily = defaultSettings.watermark_font;
						mask_div.style.color = defaultSettings.watermark_color;
						mask_div.style.textAlign = "center";
						mask_div.style.width = defaultSettings.watermark_width + 'px';
						mask_div.style.height = defaultSettings.watermark_height + 'px';
						mask_div.style.display = "block";
						oTemp.appendChild(mask_div);
					};
				};
				document.body.appendChild(oTemp);
			}

			window.onload=function(){
				watermark({ watermark_txt: "{$admin['name']} @ {$sysname}" });
			};
		})
	</script>
</head>
<body class="template_{block name="template_name"}{/block}">
{block name="page_nav"}{include file="common/site-nav.html" inline}{/block}
<div id="details_page" style="width:100vw;height:100vh;position: absolute;z-index:11;display:none;"></div>
<div class="mini_container" style="display:none;">
	<div>
		<p>
			<span id="mini_user_name"></span>
		</p>
		<p>
			<img id="unfold_mini" src="/images/news/details/quan.png" alt="" />
			<img id="close_mini" src="/images/news/details/guanbi.png" alt="" />
		</p>
	</div>
	<p>调解案号：<span id="mini_user_num"></span></p>
	<p>欠款总额：<span id="mini_user_crash"></span></p>
</div>
<div class="col-12 col-md-10 col-sm-9 col-lg-11 pull-right main-box" style="width: calc(100% - 170px);padding:0;background:#f3f6fe;">
	{block name="page_header"}{include file="common/header.html" inline}{/block}
	<div class="session-main" style="margin: 10px;height: calc(100vh - (64/1080*100vh) - 10px);">
		{block name="page_section"}{/block}
	</div>
</div>
<script type="text/javascript" src="/js/common/left.js"></script>
{if $admin['workerId']}
{block name="page_select_phone"}{include file="common/select-phone.html" inline}{/block}
<script type="text/javascript" src="/js/module/date.js"></script>
{/if}
{block name="page_scripts"}{/block}
</body>
</html>